package com.leo.foodmaster.admin.purchase.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购单详情
 * </p>
 *
 * @author Leo
 * @since 2021-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PurchaseBillDetails对象", description="采购单详情")
public class PurchaseBillDetails implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增主键Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "采购单Id")
    private Long purchaseBillId;

    @ApiModelProperty(value = "食材Id")
    private Long foodMaterialId;

    @ApiModelProperty(value = "食材名称")
    private String foodMaterialName;

    @ApiModelProperty(value = "食材类型Id")
    private Long foodMaterialTypeId;

    @ApiModelProperty(value = "食材类型名称")
    private String foodMaterialTypeName;

    @ApiModelProperty(value = "供应商Id")
    private Long supplierId;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "供应商公司Id")
    private Long supplierOrganId;

    @ApiModelProperty(value = "食材加工阶段：1（毛菜）2（净菜）3（熟食）")
    private String processPhase;

    @ApiModelProperty(value = "采购单状态：0（未入库）1（已入库）")
    private String status;

    @ApiModelProperty(value = "品牌")
    private String brand;

    @ApiModelProperty(value = "规格")
    private String specs;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "食材采购单价")
    private BigDecimal price;

    @ApiModelProperty(value = "计划采购数量")
    private BigDecimal planAmount;

    @ApiModelProperty(value = "实际采购数量")
    private BigDecimal amount;

    @ApiModelProperty(value = "总金额")
    private BigDecimal total;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    @TableField(exist = false)
    private BigDecimal warehouseInAmount;

    @TableField(exist = false)
    private BigDecimal wasteAmount;

}
